package TestJVM;

/**
 * @Author Mr.Wen
 * @Version 1.0
 * 测试类加载器
 */
public class Test1 {
    public static void main(String[] args) {
        /*TODO 类加载器*/
        System.out.println("--------class-----------");
        Cat cat = new Cat();
        Class<? extends Cat> aClass = cat.getClass();
        System.out.println(aClass);
        ClassLoader classLoader = aClass.getClassLoader();
        System.out.println("--------classLoader-----------");
        System.out.println(classLoader);
        ClassLoader parent = classLoader.getParent();
        System.out.println("--------parent-----------");
        System.out.println("parent = " + parent);
        ClassLoader parent1 = parent.getParent();
        System.out.println("--------parent1-----------");
        System.out.println("parent1 = " + parent1);

    }
}
